package com.runa.monitor.platinterface.extend.third.pojo;

public enum ResultCode {
    SUCCESS(0, "操作成功"),
    SYSTEM_ERROR(10001, "系统错误"),
    SYSTEM_ERROR_NULL(10001, "系统错误,请刷新重试"),
    OBJECT_ALREADY_EXISTS(10002, "对象已存在"),
    PARAMS_ERROR(10003, "参数错误"),
    PARAMS_LENGTH_ERROR(10004, "参数长度错误"),
    OBJECT_NOT_EXISTS(10005, "对象不存在"),
    PART_FAIL(10006, "部分操作失败"),
    NOT_DATA_AUTHORIZED(10007, "没有数据权限"),
    UPPER_LIMIT(10008, "数据达到上限"),
    FILE_SIZE_LIMIT(1009, "文件大小超过限制"),
    FILE_FORMAT_ERROR(1010, "文件格式错误"),
    NOT_SUPPORT(10011, "不支持该服务"),
    SHUT_DOWN_OR_DISCON(10012, "关停断网"),
    REPEATED_HEATING_ROUTES(10013, "供暖路线重复");

    public Integer code;
    public String message;

    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
